package org.PISS.controller.model;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

/**
 * Created by admin on 26.12.13.
 */

@Entity
public class Product {
    public Product(){
        super();
    }

    public Product(long productID, long typeId, String name, String description, long qualityRating) {
        this.productID=productID;
        this.typeId=typeId;
        this.name = name;
        this.description = description;
        this.qualityRating = qualityRating;
    }

    @Id
    @GenericGenerator(name="generator", strategy="increment")
    @GeneratedValue(generator="generator")
    private long productID;

    @Column
    private long typeId;
    @Column
    private String name;
    @Column
    private String description;
    @Column
    private long qualityRating;

    public long getProductID() {
        return productID;
    }

    public void setProductID(long productID) {
        this.productID = productID;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public long getQualityRating() {
        return qualityRating;
    }

    public void setQualityRating(long qualityRating) {
        this.qualityRating = qualityRating;
    }

    public long getTypeId() {
        return typeId;
    }

    public void setTypeId(long typeId) {
        this.typeId = typeId;
    }
}
